<%-- 
    Document   : createTemp
    Created on : 09/10/2011, 11:31:16 AM
    Author     : s4201567 Tony Yu
--%>
<style type="text/css">
    #pa-list {
        padding-left: 240px;
        padding-bottom: 20px;
    }
    
    #master-title {
        text-align:center;
    }
    
    #button {
        padding-top:20px;
        padding-bottom:20px;
    }
    
    .error {
        color:red;
    }
    
</style>

<%@ include file="../header.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    <body>
        <div id="content-container1">
            <div id="content">
                    
                <div id="master-title">
                  <h3>Add Template</h3>
                </div>
                <div id="pa-list">
                  <form:form method="post" commandName="createTemp">
                  <table bgcolor="f8f8ff" border="0" cellspacing="0" cellpadding="5">
                    <tr>
                      <td>Template:</td>
                       <td>
                           <form:input path="tempName"/>
                       </td>
                       <td>
                            <form:errors path="tempName" cssClass="error"/>
                        </td>
                    </tr>
                  </table>
                  <div id="button"> 
                      <input type="submit" align="center" value="Add Template">
                      <input type="reset" value="Reset" name="reset">
                  </div>
                  <div id="buttonback">                      
                        <input type="button" value="Back" onClick="javascript: history.go(-1)">
                  </div>
                </form:form>
              </div>
        </div>	
    </body>
<%@ include file="../footer.jsp" %>